<form id="frm_add" method="post" accept-charset="utf-8" action="<?php print $active; ?>">
<div>
    <table style="margin: auto;">
        <tbody>
            <tr>
                <td><label for="name"><?php print lang('role_name'); ?></label></td>
                <td><input type="text" name="role_name" value="<?php print ( isset($role) )? $role['role_name'] : ''; ?>" class="itext ivalidate ui-widget-content ui-corner-all" /></td>
            </tr>
            <tr>
                <td colspan="2"><div id="error_role_name" class="error"></div></td>
            </tr>
            <tr>
                <td><label for="name"><?php print lang('role_note'); ?></label></td>
                <td><input type="text" name="description" value="<?php print ( isset($role) )? $role['description'] : ''; ?>" class="itext ivalidate ui-widget-content ui-corner-all" /></td>
            </tr>
            <tr>
                <td><label for="status"><?php print lang('role_candelete'); ?></label></td>
                <td>
                    <input type="radio" name="candelete" value="1" <?php print (isset($role) && $role['can_delete'] == 1 ) ? 'checked="checked"' : ''; ?> > <?php print lang('role_yes') ?>
                    <input type="radio" name="candelete" value="0" <?php print (isset($role) && $role['can_delete'] == 0 || !isset($role) ) ? 'checked="checked"' : ''; ?> > <?php print lang('role_no') ?>
                </td>
            </tr>
        </tbody>
    </table>
    <?php if( isset($role) ): ?>
    <input type="hidden" name="role_id" value="<?php print $role['role_id']; ?>">
    <?php endif; ?>
</div>
</form>